Skip to content

feat(sdk): sync OpenAPI spec and commit 1.12.0 SDK baseline - #16

Merged
nmorgan-cb merged 4 commits into
mainfrom
feat/generator-2-baseline
Nov 25, 2026
Merged

nmorgan-cb merged 4 commits into
mainfrom
feat/generator-2-baseline

Conversation

@nmorgan-cb

@nmorgan-cb nmorgan-cb commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Description

Follow-up to #12 adding make update (fetch-spec + generate), syncing apiSpec/prime-public-spec.yaml to the latest OpenAPI spec, and committing the regenerated 1.12.0 SDK baseline.

  • New make update command & generator fixes: Added make update (fetch-spec + generate), avoided wrapping empty-object response schemas in ResponsePhase, mapped the period inline enum on webhook stats endpoints in operations-overrides.json, and gitignored generated-files.json / generated-model-files.json.
  • OpenAPI spec sync & generated SDK: Synced apiSpec/prime-public-spec.yaml, added WebhooksService (13 beta endpoints), added 21 new models and 14 new enums, and updated 22 models and 11 enums (including AdvancedTransferState, spread orders, and cross-margin types).
  • Beta prefix removal (breaking): Stripped CoinbasePublicRestApiBeta in PostProcessor so Webhook* and RewardsRateTier / RewardsRateTierType (formerly BetaRewardsRateTier / BetaRewardsRateTierType) match TypeScript; documented in CHANGELOG.md.
  • Canonical naming & deprecated aliases: 25 canonical service methods and request/response types aligned with the Go, Python, and TypeScript SDKs; all legacy names remain as @Deprecated aliases so existing callers continue compiling.
  • Transport & status codes: FinancingServiceImpl /v2 endpoints now derive from primeClient.getBaseUrl(), and service implementations accept 200 from the spec without synthetic 201.
  • Advanced transfer examples & release 1.12.0: Added CreateAdvancedTransfer, ListAdvancedTransfers, ListAdvancedTransferTransactions, and CancelAdvancedTransfer examples, bumped pom.xml / Constants.java / version tests to 1.12.0, and updated CHANGELOG.md.

Tests: 47 generator tests, 287 SDK tests, mvn javadoc:javadoc, mvn spotless:check.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Dependency update
  • Refactor / cleanup
  • Other (describe below)

Checklist

  • Tests included / updated
  • Changelog updated
  • Version bump if needed

@nmorgan-cb
nmorgan-cb force-pushed the feat/generator-2-baseline branch 3 times, most recently from 7598720 to 6ecd3be Compare November 25, 2026 17:53
@nmorgan-cb nmorgan-cb changed the title feat(sdk): commit generated SDK baseline feat(sdk): sync OpenAPI spec and commit 1.12.0 SDK baseline Nov 25, 2026
@nmorgan-cb
nmorgan-cb marked this pull request as ready for review November 25, 2026 19:04
@nmorgan-cb
nmorgan-cb requested a review from a team as a code owner November 25, 2026 19:04
rcbgr
rcbgr previously approved these changes Nov 25, 2026
@nmorgan-cb
nmorgan-cb changed the base branch from feat/generator-1-bindings to main November 25, 2026 19:06
@nmorgan-cb
nmorgan-cb dismissed rcbgr’s stale review November 25, 2026 19:06

The base branch was changed.

@cb-heimdall

cb-heimdall commented Nov 25, 2026 •

Copy link
Copy Markdown

✅ Heimdall Review Status

Requirement Status More Info
Reviews ✅ 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
1 if authored by an app that is not allowlisted and lacks verified human attribution 0
Sum 1

@cb-heimdall

Copy link
Copy Markdown

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
1 if authored by an app that is not allowlisted and lacks verified human attribution 0
Sum 1

@nmorgan-cb
nmorgan-cb force-pushed the feat/generator-2-baseline branch 2 times, most recently from 70dde26 to 2f80045 Compare November 25, 2026 19:13
…ject response fix

- Add make update target (fetch-spec + generate)
- Avoid wrapping empty-object response schemas in ResponsePhase
- Map period inline enum on webhook stats endpoints and RotateWebhookHmacSecret in operations-overrides.json
- Strip CoinbasePublicRestApiBeta prefix in PostProcessor (aligns Webhook* and RewardsRateTier* with TypeScript)
- Skip overridden inline enum parameters in OperationBindingGeneratorTest
- Gitignore generated-files.json and generated-model-files.json
- Run make update against the live OpenAPI spec
- Add WebhooksService (13 beta endpoints) and new/updated models and enums
- Rename BetaRewardsRateTier/BetaRewardsRateTierType to RewardsRateTier/RewardsRateTierType
- Add 25 canonical service methods and request/response DTOs with @deprecated legacy aliases
- Update FinancingServiceImpl /v2 calls to use primeClient.getBaseUrl() and align success codes to 200
@nmorgan-cb
nmorgan-cb force-pushed the feat/generator-2-baseline branch from 2f80045 to 52e1461 Compare November 25, 2026 19:22
@nmorgan-cb
nmorgan-cb merged commit 02404cc into main Nov 25, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants